<div id="menu">
<?php
	$menu = new Menu(array(
	// 		Link($title, $resource, $action, $controller, $submenu, $class);
		new Link(L::selected()->logIn, 'login', 'action', 'login'),
		new Link(L::selected()->dashboard, 'index', 'index'),
		new Link(L::selected()->administer, 'admin', 'admin', 'index', new Menu(array(
			new Link(L::selected()->users, 'admin', 'admin', 'user'),	
			new Link(L::selected()->acl, 'admin', 'admin', 'acl'),
			new Link(L::selected()->domains, 'admin', 'admin', 'domain'),
			new Link(L::selected()->hostings, 'admin', 'admin', 'hosting'),
			new Link(L::selected()->syslog, 'admin', 'admin', 'log'),
		))),
		new Link(L::selected()->domains, 'domain', 'domain', 'index', new DomainMenu()),
		new Link(L::selected()->hostings, 'hosting', 'hosting', 'index', new HostingMenu()),
		//new Link(L::selected()->backups, 'backup', 'backup', 'index', new HostingMenu('backup')),
		//new Link(L::selected()->logs, 'log', 'log', 'index', new HostingMenu('log')),
	));
	echo $menu;
?>
</div> <!-- end menu -->
